package com.wex.cookbook.dto.from.userInfo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

import static com.wex.cookbook.utils.BaseRegexPatterns.*;

/**
 * @author : wex
 * @createTime : 2023/10/17 17:57
 */
@Data
@ApiModel(value = "用户信息修改")
public class UpdateUserInfoDto {

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "原密码")
    private String password;

    @ApiModelProperty(value = "新密码")
    private String newPassword;

    @ApiModelProperty(value = "确认密码")
    private String confirmPassword;

    @ApiModelProperty(value = "电话号码")
    private String phone;

    @ApiModelProperty(value = "电子邮件")
    private String email;

    @ApiModelProperty(value = "性别")
    private Integer sex;

    @ApiModelProperty(value = "头像地址")
    private String avatar;

    @ApiModelProperty(value = "真实姓名")
    private String realName;
}
